/**
 * meta 可配置参数
 * @param {boolean} icon 页面icon
 * @param {boolean} keepAlive 是否缓存页面
 * @param {string} title 页面标题
 */
export default [
  {
    path: '/',
    name: 'index',
    component: () => import('@/views/index/index.vue'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'index'
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/login.vue'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'login'
    }
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('@/views/about/about.vue'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'about'
    }
  },
  {
    path: '/blog',
    name: 'blog',
    component: () => import('@/views/blog/blog.vue'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'blog'
    }
  },
  {
    path: '/items',
    name: 'items',
    component: () => import('@/views/items/items.vue'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'items'
    }
  },
  {
    path: '/edit',
    name: 'edit',
    component: () => import('@/views/edit/edit.vue'),
    meta: {
      icon: '',
      keepAlive: true,
      title: 'edit',
      rules: ['admin'] // 配置权限
    }
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/notfound/notfound.vue'),
  },
  {
    path: '*',
    redirect: '/404'
  }
]
